(function(){
    let qr = getUrlParams(location.href)
    console.log(qr.productid);
    $.ajax({url:`http://chst.vip:1234/api/getmoneyctrlproduct?productid=${qr.productid}`})
    .then(res=>{
        let newData = [...res.result]
        console.log(newData);
        let html = ''
        let page = ''
        newData.forEach(item=>{
            html =`
            <div class="title">
                <h4>${item.productName}</h4>
            </div>
            <div class="other">
                <span class="mall fl">${item.productFrom} | ${item.productTime}</span>
                <i>${item.productTips}</i>
            </div>
            <div class="container">
                <p>
                      ${item.productImg2}
                      ${item.productInfo2}
                      ${item.productInfo1}
                </p>
            </div>
            <div class="bigimg">
                    ${item.productImg2}
            </div>
            <div class="city">
                ${item.productCity}
            </div>
            `
            page+=`
            ${item.productComment}
            `
        })
        $('.lisIn').html(html)
        $('.comment').html(page)
    })
})()